package com.ms.auction.common.module.deal;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 拍品订单
 * </p>
 *
 * @author MaHC
 * @since 2019-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="GoodsOrder对象", description="拍品订单")
public class GoodsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "订单编号")
    @TableField("order_number")
    private String orderNumber;

    @ApiModelProperty(value = "用户ID")
    @TableField("customer_id")
    private Integer customerId;

    @ApiModelProperty(value = "交易号")
    @TableField("transaction_number")
    private String transactionNumber;

    @ApiModelProperty(value = "支付时间")
    @TableField("payment_time")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "拍品id")
    @TableField("goods_id")
    private Integer goodsId;

    @ApiModelProperty(value = "定金金额/保证金")
    @TableField("bond")
    private BigDecimal bond;

    @ApiModelProperty(value = "定金支付渠道")
    @TableField("bond_channel")
    private String bondChannel;

    @ApiModelProperty(value = "参拍次数")
    @TableField("total_number")
    private Integer totalNumber;

    @ApiModelProperty(value = "总参拍次数")
    @TableField("total_number_all")
    private Integer totalNumberAll;

    @ApiModelProperty(value = "总参拍佣金")
    @TableField("reference_commission_all")
    private BigDecimal referenceCommissionAll;

    @ApiModelProperty(value = "参拍佣金")
    @TableField("reference_commission")
    private BigDecimal referenceCommission;

    @ApiModelProperty(value = "优惠金额")
    @TableField("preferential_amount")
    private BigDecimal preferentialAmount;

    @ApiModelProperty(value = "实际出价")
    @TableField("actual_payment")
    private BigDecimal actualPayment;

    @ApiModelProperty(value = "尾款金额")
    @TableField("tail_amount")
    private BigDecimal tailAmount;

    @ApiModelProperty(value = "尾款支付渠道")
    @TableField("tail_amount_channel")
    private String tailAmountChannel;

    @ApiModelProperty(value = "物流信息")
    @TableField("logistics_info")
    private String logisticsInfo;

    @ApiModelProperty(value = "订单地址id")
    @TableField("address_id")
    private Integer addressId;

    @ApiModelProperty(value = "状态 0:待支付,1已支付,2以违约,3待发货,4待收货,5已完成,6待售后")
    @TableField("status")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "描述")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "乐观锁标志")
    @TableField("version")
    @Version
    private Integer version;


}
